<?php

/**
 * 请求版本为v1
 */
Route::group(['prefix'=>'api/v1/xiao','middleware' => ['transaction','response']], function() {
    //=============================================微信小程解密小程序用信息获取用户信息===============================
    Route::post('/info/class', ['uses' => 'InfoController@getInfoClass']);  //微信总分类列表
    Route::post('/info/class/all', ['uses' => 'InfoController@getInfoClassAll']);  //微信总分类列表
    Route::post('/info/class/sub', ['uses' => 'InfoController@getClassSub']);  //微信字分类
    Route::post('/config/get/info', ['uses' => 'ConfigController@getConfigInfo']);  //配置信息
    Route::post('/info/order/filsh', ['uses' => 'InfoController@filshList']);  //首页滚动.....完成的求邦信息
    //==========================================入驻会员功能=================================
    Route::group(['middleware' => ['apiuser.into']], function () {
        Route::post('/store/applyuser/set', ['uses' => 'UserController@setUserApply']);  //提交用户认证申请
        Route::post('/store/applyuser/get', ['uses' => 'UserController@setUserApply']);  //获取用户认证申请
        Route::post('/store/add', ['uses' => 'StoreController@add']);  //添加商家数据
        Route::post('/store/index', ['uses' => 'StoreController@index']);  //商家数据列表
        Route::post('/store/detail', ['uses' => 'StoreController@detail']);  //添加商家数据
        Route::post('/store/bind/mobile', ['uses' => 'UserController@bindUserMobile']);  //邦定用户订单
        Route::post('/store/user/infoadd', ['uses' => 'UserController@updateUserAddInfo']);  //添加基本资料
        Route::post('/store/user/infoget', ['uses' => 'UserController@getUserAddInfo']);  //添加基本资料
        //===============按钮================
        Route::post('/info/order/accept', ['uses' => 'InfoController@accept']);  //接单按钮--订单接单
        Route::post('/info/order/accept/cancel', ['uses' => 'InfoController@cancelAccept']);  //取消按钮--订单取消接单
        Route::post('/info/order/completion', ['uses' => 'InfoController@completion']);  //完成按钮--订单在30状态－－－状态在30时才可退单
        Route::post('/info/order/giveup', ['uses' => 'InfoController@giveup']);  //放弃按钮--订单在30状态－－－状态在30时才可放弃
        Route::post('/info/order/rclose', ['uses' => 'InfoController@rclose']);  //同意按钮
        //===================================自动接单=====================================
        Route::post('/info/automatic/accept', ['uses' => 'AutomaticController@acceptAutomatic']);  //自动接单
        Route::post('/info/automatic/cancel', ['uses' => 'AutomaticController@cancelAutomatic']);  //自动接单

    });
    //=================================================小程序支付通知============================================================================
    Route::post('/freebird/vipshop/notify', ['uses' => 'VipShopController@vipBuyNotify']);  //购买vip
    Route::post('/info/pay/notify', ['uses' => 'InfoController@payNotify']);  //发布求邦消息
    //=====================================================================会员操作===================================================================================
    Route::group(['middleware' => ['apiuser']], function () {

        //======================================================订单操作====================================================================================
        Route::post('/info/order/add', ['uses' => 'InfoController@add']);  //新增求邦信息
        Route::post('/info/order/pay', ['uses' => 'InfoController@pay']);  //支付按钮--未支付去支付
        Route::post('/info/order/cancel', ['uses' => 'InfoController@cancel']);  //取消按钮--订单取消
        Route::post('/info/order/refuse', ['uses' => 'InfoController@refuse']);  //拒绝按钮--订单拒绝接单
        Route::post('/info/order/agree', ['uses' => 'InfoController@agree']);  //同意按钮--订单同意接单
        Route::post('/info/order/back', ['uses' => 'InfoController@back']);  //退单按钮--订单退单接单－－－状态在30时才可退单
        Route::post('/info/order/reward', ['uses' => 'InfoController@reward']);  //打赏按钮--订单打赏接单－－－状态在30时才可退单
        Route::post('/info/order/close', ['uses' => 'InfoController@close']);  //同意按钮
        Route::post('/info/order/giveup/close', ['uses' => 'InfoController@giveupClose']);  //放弃状态同意按钮-----这个同意要扣违约金
        Route::post('/info/order/complaint', ['uses' => 'InfoController@complaint']);  //放弃状态同意按钮-----这个同意要扣违约金
        Route::post('/info/order/appeal', ['uses' => 'InfoController@appeal']);  //申诉按钮----申诉
        Route::post('/info/order/confirmation/completed', ['uses' => 'InfoController@confirmationCompleted']);  //确认完成－－－确认完成按扭
        Route::post('/info/order/comment', ['uses' => 'InfoController@comment']);  //求邦订单评论
        Route::post('/info/order/list', ['uses' => 'InfoController@getList']);  //--订单列表

        Route::post('/info/order/exits', ['uses' => 'InfoController@exitsOrder']);  //现在订单是否存在
       //===============================================================================================================================================
        Route::post('/login/redpack/open', ['uses' => 'ScoreController@openRedPack']);  //登陆领取金币
        Route::post('/share/link/open', ['uses' => 'ScoreController@openShareLink']);  //打开分享联接
        Route::post('/user/score/list', ['uses' => 'ScoreController@getUserScoreList']);  //金币列表
        //=====================================================vip月购支付===========================================================================
        Route::post('/freebird/vipshop/list', ['uses' => 'VipShopController@getVipshopList']);  //打开分享联接
        Route::post('/freebird/vipshop/buy', ['uses' => 'VipShopController@vipBuy']);  //购买vip

        //=====================================================客服操作===========================================================================
        Route::post('/freebird/cs/list', ['uses' => 'CustomerServiceController@getCsList']);  //打开分享联接
        Route::post('/freebird/cs/add', ['uses' => 'CustomerServiceController@setCsList']);  //购买vip
        //=====================================================打卡操作===========================================================================
        Route::post('/freebird/punch/add', ['uses' => 'PunchController@add']);  //打开分享联接
        Route::post('/freebird/punch/list', ['uses' => 'PunchController@getList']);  //购买vip
        //=====================================================打卡操作===========================================================================
        Route::post('/freebird/navigation/add', ['uses' => 'NavigationController@add']);  //打开分享联接
        Route::post('/freebird/navigation/list', ['uses' => 'NavigationController@getList']);  //购买vip
        //=====================================================收藏===========================================================================
        Route::post('/freebird/collection/set', ['uses' => 'CollectionController@setCollectionInfo']);  //打开分享联接
        Route::post('/freebird/collection/list', ['uses' => 'CollectionController@getCollectionList']);  //打开分享联接
        //=====================================================分销列表===========================================================================
        Route::post('/freebird/rebate/log', ['uses' => 'RebateLogController@getLogList']);  //分销列表
        Route::post('/freebird/rebate/statistics', ['uses' => 'RebateLogController@getStatistics']);  //分销列表
        //=====================================================消息接口===========================================================================
        Route::post('/freebird/messgae/list', ['uses' => 'MessageController@getMessageLit']);  //分销列表
        Route::post('/freebird/messgae/detail', ['uses' => 'MessageController@getMessageDetail']);  //分销列表
    });



});